<?php

spl_autoload_register(function ($className) {

	$className = str_replace("\\", "/", $className) . ".php";

	//var_dump($className)."<br/>";

	if (is_file($className)) {
		require $className;
	} else {
		echo "自动加载文件失败";exit();
	}

});


?>